-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rust Miner Arch Improvements #32
Conversation
It's possible that more logic could be pushed into the |
rust-miner/src/lib.rs
Outdated
} | ||
} | ||
|
||
pub async fn run(&self, mut shutdown: oneshot::Receiver<()>) -> Result<()> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could also have this spawn a task for the loop and return the sender.
yea this is great, I'm down to move these changes into |
I kept thinking about this so I figured I'd write it up and put it out there.
I kept the worker manager as a trait as well because I keep hearing about doing GPU hashing. We could develop a CPU manager for now and then someone could upgrade it to GPU once we figure it out. The abstraction makes that easier.